﻿<%@ Page Language="C#" MasterPageFile="~/Examples/Examples.master" AutoEventWireup="true" CodeBehind="Gzip.aspx.cs" Inherits="SampleSite.Examples.Gzip" %>
<asp:Content ID="Content3" ContentPlaceHolderID="ExampleIntro" runat="server"></asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Example" runat="server">
    <moxiecode:TinyMCE ID="TinyMCE1" runat="server" Gzip-Enabled="true" Width="100%" />
    <moxiecode:TinyMCE ID="TinyMCE2" runat="server" Gzip-Enabled="true" Mode="Exact" Theme="Simple" Width="100%">
        <Targets>
            <moxiecode:Target TargetID="TextBox3" />
            <moxiecode:Target TargetID="TextBox4" />
        </Targets>
    </moxiecode:TinyMCE>
    <table cellpadding="0" cellspacing="0" class="examples">
        <tr>
            <td><asp:TextBox ID="TextBox1" runat="server" /></td>
            <td><asp:TextBox ID="TextBox2" runat="server" /></td>
        </tr>
        <tr>
            <td><asp:TextBox ID="TextBox3" runat="server" /></td>
            <td><asp:TextBox ID="TextBox4" runat="server" /></td>
        </tr>
    </table>
<pre runat="server" class="html">
&lt;moxiecode:TinyMCE ID="TinyMCE1" runat="server" Gzip-Enabled="true" Width="100%" /&gt;
&lt;moxiecode:TinyMCE ID="TinyMCE2" runat="server" Gzip-Enabled="true" Mode="Exact" Theme="Simple" Width="100%"&gt;
    &lt;Targets&gt;
        &lt;moxiecode:Target TargetID="TextBox3" /&gt;
        &lt;moxiecode:Target TargetID="TextBox4" /&gt;
    &lt;/Targets&gt;
&lt;/moxiecode:TinyMCE&gt;
&lt;table cellpadding="0" cellspacing="0" class="examples"&gt;
    &lt;tr&gt;
        &lt;td&gt;&lt;asp:TextBox ID="TextBox1" runat="server" /&gt;&lt;/td&gt;
        &lt;td&gt;&lt;asp:TextBox ID="TextBox2" runat="server" /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;&lt;asp:TextBox ID="TextBox3" runat="server" /&gt;&lt;/td&gt;
        &lt;td&gt;&lt;asp:TextBox ID="TextBox4" runat="server" /&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</pre>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ExampleExplanation" runat="server">
    <p>
        This example shows that when the control is used in tandem with other TinyMCE controls, a single file is included (in
        this case <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/TinyMCE.ashx?module=GzipModule&themes=advanced,simple">TinyMCE.ashx?module=GzipModule&amp;themes=advanced,simple</asp:HyperLink>). 
        However, if different languages or plugins are referenced in different TinyMCE controls, multiple files are included.
    </p>
</asp:Content>
